<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>注册</title>
    <link rel="stylesheet"  href="./css/all.css" />
    <link rel="stylesheet"  href="./css/register.css" />
    <link rel="stylesheet"  href="./font/iconfont.css" />
  </head>
  <body>
    <!-- 注册 -->
    <div id="login">
      <div class="title">
        <img src="./images/btn-5.png" alt="" />
        <h2>小米帐号注册</h2>
      </div>
      <div id="reg-box">
        <input
        class="phone item"
        type="text"
        placeholder="请输入手机号"
      /><span></span>
      <br />
      <input
        class="name item"
        type="text"
        placeholder="请输入用户名"
      /><span></span>
      <br />
      <input
        class="pwd1 item"
        type="password"
        placeholder="请输入密码"
      /><span></span>
      <br />
      <input
        class="pwd2 item"
        type="password"
        placeholder="再次输入密码"
      /><span></span>
      <br />
      <input type="button " value="注册" class="btn item" />

      </div>
      <p class="que">
        <a href="./login.html" class="reg">已有账号登陆</a>
        <i>|</i>
        <a href="#javascript" class="forget">忘记密码？</a>
      </p>

      <div id="other">
        <fieldset>
          <legend>其他登陆方式</legend>
        </fieldset>
        <div class="ic">
          <i class="iconfont icon-QQ"></i>
          <i class="iconfont icon-weibo1"></i>
          <i class="iconfont icon-zhifubao"></i>
          <i class="iconfont icon-weixin1"></i>
        </div>
      </div>
    </div>

    <!-- 底部 -->
    <div class="footer">
      <ul>
        <li>
          <a href="#javascript">简体</a>
        </li>
        <li>
          <em>|</em>
          <a href="#javascript">繁体</a>
        </li>
        <li>
          <em>|</em>
          <a href="#javascript">English</a>
        </li>
        <li>
          <em>|</em>
          <a href="#javascript">常见问题</a>
        </li>
        <li>
          <em>|</em>
          <a href="#javascript">隐私政策</a>
        </li>
      </ul>
      <div id="auth">
        <i>小米公司版权所有-京ICP备10046444-</i>
        <a href="#javascript">京公网安备11010802020134号</a>
        -京ICP证110507号
      </div>
    </div>
  </body>
</html>
<script src="./js/jquery.min.js"></script>
<script src="./js/register.js"></script>
<script>
  // var times = "";
  // $(".btn").click(function () {
  //  clearTimeout(times)
  //   $.ajax({
  //     url: "http://localhost:1000/api",
  //     data: {
  //       type: "register",
  //       username: $(".name").val(),
  //       password: $(".pwd1").val(),
  //       phone: $(".phone").val(),
  //     },
  //     success: (res) => {
  //       console.log(res);
  //       if (JSON.parse(res).code == 1) {
  //         times = setTimeout(() => {
  //           window.location.href = "./login.html";
  //         }, 1500);
  //       }
  //     },
  //   });
  // });
</script>
